package net.wsfcp.android.http.mvp.contract;

import net.wsfcp.android.bean.resultbean.UserBean;

import java.io.IOException;
import java.io.InputStream;

/**
 * Created by Shaoboyang on 2018/12/14.
 * 契约类,定义登录用到的一些接口方法
 */

public class RegisterContract {

    public interface RegisterView {

        String getUserName();

        String getPwd();

        String getPwdAgain();

        String getMail();

        String getCode();


        void registerSuccess(UserBean loginBean, String pwd);

        void registerFail(String failMsg);


        void getImageCodeSuccess(InputStream imageCodeBean) throws IOException;

        void getImageCodeFail(String failMsg);


    }


    public interface RegisterPresenter {
        void register(String name, String pwd, String mail, String code);
        void getImageCode();
    }
}
